<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
      name="viewport"
    />
    <title>色谱报告</title>
    <!--标准mui.css-->
    <link rel="stylesheet" href="../css/mui.min.css" />
    <script src="../js/mui.min.js"></script>
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="../css/app.css" />
    <script src="../js/vue.js"></script>
    <script src="../js/jquery-3.6.0.min.js"></script>
    <script src="../js/sm2.js"></script>
    <script src="../js/sm3.js"></script>
    <script src="../js/feedback.js"></script>
    <script src="../js/clipboard.js"></script>
    <script src="../js/flexible.js"></script>
    <script src="../wx/uap.js"></script>
    <script src="../js/vconsole.min.js"></script>
    <script src="./text.js" type="text/javascript"></script>

    <style>
      .trainTicketstitle {
        background-image: linear-gradient(
          to right,
          rgb(13, 121, 131),
          rgb(25, 179, 182)
        );
        height: 2.43rem;
        width: 100%;
        padding: 0.3rem 0.2rem;
        color: #fff;
      }

      input[type="text"] {
        margin: 0;
        width: 100%;
        height: 85%;
        padding: 0;
        line-height: 1rem;
      }

      .mui-btn-blue,
      .mui-btn-primary,
      input[type="submit"] {
        background-color: rgb(25, 179, 182);
        color: #fff;
        border: 1px solid rgb(25, 179, 182);
        border-radius: 4px;
        margin-right: 10px;
      }

      .trainTickets {
        height: 100%;
      }

      .left {
        text-align: center;
        line-height: 1rem;
      }

      .left a {
        line-height: 0.5rem;
        color: #fff;
      }

      .left .left1 {
        position: absolute;
        left: 0.3rem;
        top: 0.35rem;
      }

      .left :nth-child(1) span {
        line-height: 2rem;
        color: #fff;
      }

      .left :nth-child(2) span {
        line-height: 2rem;
        color: #fff;
      }

      .file-input {
        opacity: 0;
        height: 100%;
        width: 100%;
        z-index: 1;
        position: absolute;
        left: 0;
        top: 0;
      }

      .top {
        height: 10rem;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.4rem;
        /* border: 3px dashed rgb(25, 179, 182); */
        position: relative;
        border-radius: 10px;
        padding: 0.3rem;
        margin-bottom: 0.3rem;
        position: relative;
        margin-top: 1rem;
        background: #fff;
        /* width: 80%;
            height: 80%; */
      }

      /* .bgcImg {
        width: 60%;
        height: 3rem;
        margin: 0 auto;
        background: url("../image/printTop.png") center;
        background-size: 100% 100%;
        margin-top: 2.5rem;
        margin-bottom: 3.3rem;
      } */

      .frontandback {
        /* position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%); */
        font-size: 0.35rem;
        padding: 0.1rem 0.2rem;
        /* border-radius: 6%;
            background: rgb(179, 179, 179);
            opacity: 0.8;
            color: #fff;
            border-radius: 10px; */
      }

      .head {
        position: fixed;
        background-color: #fff;
        margin: 0.32rem auto;
        width: 7.04rem;
        color: #333;
      }

      .head .title {
        display: flex;
        justify-content: flex-start;
        height: 0.84rem;
      }

      .head .title h4 {
        position: absolute;
        left: 0.74rem;
        top: 0.2rem;
        font-size: 0.32rem;
        width: 6.2rem;
        /* height: .84rem; */
        text-align: left;
        /* line-height: .84rem; */
        /* border-bottom:1px dashed rgb(25, 179, 182); */
      }

      .head .line {
        position: absolute;
        width: 6.3rem;
        top: 0.72rem;
        left: 0.36rem;
        border-bottom: 1px dashed rgb(25, 179, 182);
      }

      /* .main {
        background-color: #f7faff;
      } */
      /* 中间 */
      .list {
        width: 7.04rem;
        margin: 0 auto;
        background-color: #fff;
        height: calc(100% - 3.8rem - env(safe-area-inset-bottom));
        overflow-y: scroll;
      }

      .productsDescription {
        background-color: #f7faff;
        text-align: center;
        padding: 0.1rem;
      }

      .productsDescription .title {
        display: flex;
        justify-content: flex-start;
        height: 0.84rem;
        /* position: relative; */
        /* height: 1rem; */
      }

      .productsDescription .title h4 {
        position: absolute;
        left: 0.74rem;
        top: 0.2rem;
        font-size: 0.32rem;
        width: 6.2rem;
        /* height: .84rem; */
        text-align: left;
        /* line-height: .84rem; */
        /* border-bottom:1px dashed rgb(25, 179, 182); */
      }

      .bar {
        position: absolute;
        width: 0.06rem /* 1/100 */;
        left: 0.36rem;
        top: 0.2rem;
        height: 0.3rem /* 1/100 */;
        background: #0e7677;
        border-radius: 3px;
      }

      .leftCircle {
        width: 0.15rem;
        height: 0.2rem;
        background-color: rgb(13, 121, 131);
        border-top-right-radius: 0.1rem;
        border-bottom-right-radius: 0.1rem;
        position: absolute;
        /* top: 1.8rem;
        left: 0.35rem; */
        top: 0.6rem;
        left: -0.01rem;
      }

      .rightCircle {
        width: 0.15rem;
        height: 0.2rem;
        background-color: rgb(25, 179, 182);
        border-top-left-radius: 0.1rem;
        border-bottom-left-radius: 0.1rem;
        position: absolute;
        top: 0.6rem;
        right: -0.01rem;
      }

      .productsDescription .line {
        position: absolute;
        width: 6.3rem;
        top: 0.72rem;
        left: 0.36rem;
        border-bottom: 1px dashed rgb(25, 179, 182);
      }

      .description {
        background-color: #fff;
        padding: 0.1rem;
      }

      .description li {
        width: 100%;
        height: 0.85rem;
        display: flex;
        text-align: left;
        /* padding-top: 0.15rem; */
        justify-content: flex-start;
        align-content: flex-start;
        /* box-sizing:border-box; */
      }

      .description li p {
        font-size: 0.3rem;
        line-height: 0.9rem;
        width: 35%;
      }

      .productsDescription .description li span {
        width: 65%;
        line-height: 0.9rem;
        /* padding-bottom: 0.06rem; */

        border-bottom: 0.01rem dashed #aeaeb3;
        /* box-sizing:border-box; */
      }

      .productsDescription .description li span input {
      }

      .main {
        display: block;
        margin-top: 0.5rem;
      }

      .productData {
        margin-top: 0.2rem;
        /* width: 7.04rem; */
        /* height: 3.56rem; */
        /* position: relative; */
        background-color: #fff;
      }

      .productData .dot {
        /* position: absolute; */
        width: 0.12rem;
        height: 0.12rem;
        background: #0e7677;
        border-radius: 50%;
        line-height: 0.25rem;
        margin-top: 0.14rem;
      }

      .productData .description p {
        /* position: absolute; */
        font-size: 0.32rem;
        font-weight: 600;
        color: #1e3754;
        line-height: 0.45rem;
        margin-left: 2.5rem;
      }

      .productData .description p:nth-child(3) {
        /* position: absolute; */
        width: 6.3rem;
        height: 0.01rem;
        border: 0.01rem solid #d3e3fe;
        left: 0.3rem;
        top: 0.85rem;
      }

      .gas {
        /* position: absolute; */
        width: 6.3rem;
        margin: 0 auto;
      }

      .gas div {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        height: 0.73rem;
      }

      .gas div:nth-child(1) {
        border: 0.01rem solid #ecf3ff;
      }

      .gas div p {
        font-size: 0.24rem;
        color: #8a9dbe;
        line-height: 0.73rem;
      }

      .gas div p:nth-child(1) {
        margin-left: 0.39rem;
        width: 20%;
      }

      .gas div p:nth-child(2) {
        text-align: center;
        width: 80%;
        display: flex;
        justify-content: space-around;
      }

      .gas .careful {
        background-color: #f7faff;
      }

      #mod {
        display: flex;
        justify-content: space-around;
        flex-wrap: nowrap;
        width: 80%;
        text-align: center;
      }

      .four {
        padding-bottom: 0.2rem;
        border-bottom: 0.01rem dashed #aeaeb3;
      }

      .productComparison {
        margin-top: 0.2rem;
        padding-bottom: 0.3rem;
      }

      .productComparison .description li span {
        width: 65%;
        line-height: 0.9rem;
        padding-bottom: 0.06rem;
        border-bottom: 0.01rem dashed #aeaeb3;
      }

      .form {
        padding: 0.2rem;
        line-height: 0.5rem;
        /* background: #fff; */
        margin: 0.2rem 0.2rem 0.2rem;
      }

      /* 底部 */
      .foot {
        position: fixed;
        justify-content: space-around;
        bottom: 0;
        left: 0;
        background-color: #fff;
        width: 100%;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        padding: 0.15rem 0.4rem;
        display: flex;
      }

      .foot button {
        width: 2.1rem;
        height: 0.96rem;
        box-shadow: 0px 8px 8px 0px rgba(4, 124, 137, 0.05);
        border-radius: 4px;
      }

      .foot .edit {
        background: #ffffff;
        border: 2px solid #0e7677;
        font-weight: 600;
        color: #0e7677;
      }

      .foot .sendOut {
        background: #0e7677;
        font-weight: 600;
        color: #ffffff;
      }

      /* .line1 {
        position: absolute;
        top: 0;
        left: 0px;
        width: 100%;
        height: 100%;
        z-index: 111;
      }

      .lineFlag1 {
        display: none;
        width: 100%;
        -webkit-animation: bounce-down1 2s linear infinite;
        animation: bounce-down1 2s linear infinite;
      } */

      @-webkit-keyframes bounce-down1 {
        25% {
          -webkit-transform: translateY(1.5rem);
        }

        50% {
          -webkit-transform: translateY(4rem);
        }

        100% {
          -webkit-transform: translateY(7.5rem);
        }
      }

      @keyframes bounce-down1 {
        25% {
          transform: translateY(7.5rem);
        }

        50% {
          transform: translateY(4rem);
        }

        100% {
          transform: translateY(0);
        }
      }

      /* .line {
        position: absolute;
        top: 0.3rem;
        left: 0px;
        width: 100%;
        height: 9.2rem;
        z-index: 111;
      }

      .lineFlag {
        display: none;
        width: 100%;
        -webkit-animation: bounce-down 2s linear infinite;
        animation: bounce-down 2s linear infinite;
      } */

      @-webkit-keyframes bounce-down {
        25% {
          -webkit-transform: translateY(0.15rem);
        }

        50% {
          -webkit-transform: translateY(4.55rem);
        }

        100% {
          -webkit-transform: translateY(9.2rem);
        }
      }

      @keyframes bounce-down {
        25% {
          transform: translateY(9.2rem);
        }

        50% {
          transform: translateY(4.55rem);
        }

        100% {
          transform: translateY(0.15rem);
        }
      }

      .mui-toast-container {
        top: 50%;
      }

      .form .title1 {
        font-size: 0.35rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.2rem;
      }

      .title .titleline {
        /* height: 0.3rem; */
        /* border: 2px solid rgb(25, 179, 182); */
        /* margin-right: 0.2rem;
            margin-top: 0.07rem; */
      }

      .clipboardContent {
        background-color: rgb(251, 247, 247);
        padding: 0.4rem;
        position: relative;
        height: calc(100vh - 3.5rem);
      }

      .clipboardContent img {
        width: 0.3rem;
      }

      .content1 {
        overflow: scroll;
        height: 100%;
        padding: 0.1rem 0.2rem;
        word-wrap: break-word;
      }

      .frontandback .bottom2 {
        position: absolute;
        bottom: 0;
        right: 0;
        margin-right: 0.2rem;
        margin-bottom: 0.2rem;
        width: 0.3rem;
      }

      .frontandback .left2 {
        position: absolute;
        top: 0;
        right: 0;
        margin-right: 0.2rem;
        margin-top: 0.2rem;
        width: 0.3rem;
      }

      .frontandback .left1 {
        position: absolute;
        top: 0;
        left: 0;
        margin-left: 0.2rem;
        margin-top: 0.2rem;
        width: 0.3rem;
      }

      .frontandback .bottom1 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0.3rem;
        margin-left: 0.2rem;
        margin-bottom: 0.2rem;
      }

      .topImg .bottom2 {
        position: absolute;
        top: 0;
        left: 0;
        margin-left: 0.2rem;
        padding-top: 0.2rem;
        width: 0.3rem;
      }

      .bottomImg .left2 {
        position: absolute;
        bottom: 0;
        left: 0;
        margin-left: 0.2rem;
        width: 0.3rem;
        padding-bottom: 0.2rem;
      }

      .bottomImg .left1 {
        position: absolute;
        bottom: 0;
        right: 0;
        margin-right: 0.2rem;
        width: 0.3rem;
        padding-bottom: 0.2rem;
      }

      .topImg .bottom1 {
        position: absolute;
        right: 0;
        top: 0;
        width: 0.3rem;
        margin-right: 0.2rem;
        padding-top: 0.2rem;
      }

      .home {
        font-family: Muiicons;
        font-size: 0.5rem;
        font-weight: 400;
        font-style: normal;
        line-height: 1;
        display: inline-block;
        text-decoration: none;
        -webkit-font-smoothing: antialiased;
      }

      .home:before {
        content: "\e471";
      }

      /* 弹出框 */
      .btn-pop {
        background-color: #ffd475;
        border-radius: 0.1rem;
        zoom: 200%;
      }

      #background-pop {
        display: none;
        position: fixed;
        text-align: center;
        line-height: 0.8rem;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
      }

      #div-pop {
        background: #ffffff;
        width: 70%;
        z-index: 1;
        margin: 45% auto;
        overflow: auto;
      }

      .div-top {
        width: 100%;
        height: auto;
        background-color: rgb(25, 179, 182);
        color: #ffffff;
        display: flex;
        justify-content: space-between;
      }

      .div-top div {
        padding: 3px 5px 5px 8px;
      }

      .div-top div span {
        color: white;
        margin-bottom: 10px;
        margin-left: 20px;
        cursor: pointer;
        float: right;
      }

      .div-content {
        width: auto;
        height: 200px;
        overflow: auto;
      }

      .div-footer {
        text-align: center;
        background-color: #f7faff;
      }

      .div-footer button {
        background-color: rgb(25, 179, 182);
        color: #fff;
      }
    </style>
  </head>

  <body>
    <div id="app">
      <!-- 提示信息 -->
      <div class="is-loading">
        <div class="curtain">
          <div class="loadingBgc">
            <div class="loader"></div>
            <p class="loadingF">正在识别</p>
          </div>
        </div>
      </div>
      <div class="trainTickets">
        <!-- 头部 -->
        <div class="trainTicketstitle">
          <div class="arrow clearfix">
            <div class="left">
              <span class="left1" @click="zhuce">
                <a class="home"></a>
                <!-- <span>返回&gt;</span> -->
              </span>
              <!-- <van-icon name="arrow-left" /> -->
              <span style="font-weight: 600">识别结果</span>
            </div>
          </div>
          <div class="head">
            <div class="title">
              <div class="bar"></div>
              <h4>绝缘油色谱试验报告</h4>
            </div>
            <div class="leftCircle"></div>
            <div class="rightCircle"></div>
            <div class="line"></div>
          </div>
        </div>

        <!-- 中间 -->
        <div class="list">
          <div class="productsDescription">
            <ul class="description" :v-model="signRule">
              <li>
                <p>取样地点</p>
                <span
                  ><input
                    id="test"
                    v-model="signRule['取样地点']"
                    :style='{"color":colors["取样地点"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li>
                <p>设备名称</p>
                <span
                  ><input
                    id="test"
                    v-model="signRule['设备名称']"
                    :style='{"color":colors["设备名称"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li>
                <p>设备编码</p>
                <span
                  ><input
                    id="test"
                    v-model="signRule['设备编号']"
                    :style='{"color":colors["设备编号"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li>
                <p>电压等级(kV)</p>
                <span
                  ><input
                    id="test"
                    v-model="signRule['电压等级']"
                    :style='{"color":colors["电压等级"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li
                v-show="dianya"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可为330kV、220kV、110kV、35kV、10kV、6kV
              </li>
              <li>
                <p>气压(kPa)</p>
                <span
                  ><input
                    id="test"
                    v-model="signRule['气压']"
                    :style='{"color":colors["气压"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li>
                <p>取样日期</p>
                <span
                  ><input
                    id="test"
                    v-model.trim="signRule['取样日期']"
                    :style='{"color":colors["取样日期"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li>
                <p>分析日期</p>
                <span
                  ><input
                    id="test"
                    v-model.trim="signRule['分析日期']"
                    :style='{"color":colors["分析日期"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
              <li>
                <p>脱气方法</p>
                <span
                  ><input
                    id="test"
                    v-model="signRule['脱气方法']"
                    :style='{"color":colors["脱气方法"]}'
                    style="border-style: none; width: 100%"
                    readonly="readonly"
                    value="123"
                /></span>
              </li>
            </ul>
            <div class="main">
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>氢&nbsp(H₂)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.H2_A"
                          :style='{"color":colors.H2_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.H2_B"
                          :style='{"color":colors.H2_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.H2_C"
                          :style='{"color":colors.H2_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.H2_O"
                          :style='{"color":colors.H2_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProducts"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>氧&nbsp(O₂)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.O2_A"
                          :style='{"color":colors.O2_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.O2_B"
                          :style='{"color":colors.O2_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.O2_C"
                          :style='{"color":colors.O2_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.O2_O"
                          :style='{"color":colors.O2_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductso"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>甲烷&nbsp(CH4)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CH4_A"
                          :style='{"color":colors.CH4_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CH4_B"
                          :style='{"color":colors.CH4_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CH4_C"
                          :style='{"color":colors.CH4_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CH4_D"
                          :style='{"color":colors.CH4_D}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductst"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>乙烷&nbsp(CH₃CH₃)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H6_A"
                          :style='{"color":colors.C2H6_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H6_B"
                          :style='{"color":colors.C2H6_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H6_C"
                          :style='{"color":colors.C2H6_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H6_O"
                          :style='{"color":colors.C2H6_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductsth"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>乙烯&nbsp(C₂H₄)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H4_A"
                          :style='{"color":colors.C2H4_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H4_B"
                          :style='{"color":colors.C2H4_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H4_C"
                          :style='{"color":colors.C2H4_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H4_O"
                          :style='{"color":colors.C2H4_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductsf"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>乙炔&nbsp(C₂H₂)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H2_A"
                          :style='{"color":colors.C2H2_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H2_B"
                          :style='{"color":colors.C2H2_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H2_C"
                          :style='{"color":colors.C2H2_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.C2H2_O"
                          :style='{"color":colors.C2H2_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductsfi"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>一氧化碳&nbsp(CO)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO_A"
                          :style='{"color":colors.CO_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO_B"
                          :style='{"color":colors.CO_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO_C"
                          :style='{"color":colors.CO_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO_O"
                          :style='{"color":colors.CO_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductss"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>二氧化碳&nbsp(CO₂)</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO2_A"
                          :style='{"color":colors.CO2_A}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO2_B"
                          :style='{"color":colors.CO2_B}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO2_C"
                          :style='{"color":colors.CO2_C}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule.CO2_O"
                          :style='{"color":colors.CO2_O}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductsse"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productData">
                <div class="description">
                  <div style="display: flex">
                    <div class="dot"></div>
                    <p>总烃</p>
                  </div>
                  <p></p>
                </div>
                <div class="gas">
                  <div class="careful">
                    <p>注意值</p>
                    <p>含量(μl/L)</p>
                  </div>
                  <div class="careful">
                    <p></p>
                    <p>
                      <span>A</span>
                      <span>B</span>
                      <span>C</span>
                      <span>O</span>
                    </p>
                  </div>
                  <div>
                    <p>
                      <span
                        ><input
                          id="test"
                          style="
                            border-style: none;
                            width: 100%;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="/"
                      /></span>
                    </p>
                    <p>
                      <span
                        ><input
                          id="test"
                          v-model="signRule['总径值_A']"
                          :style='{"color":colors["总径值_A"]}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule['总径值_B']"
                          :style='{"color":colors["总径值_B"]}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule['总径值_C']"
                          :style='{"color":colors["总径值_C"]}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.26rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                      <span
                        ><input
                          id="test"
                          v-model="signRule['总径值_O']"
                          :style='{"color":colors["总径值_O"]}'
                          style="
                            border-style: none;
                            width: 100%;
                            text-align: center;
                            font-size: 0.24rem;
                          "
                          readonly="readonly"
                          value="123"
                      /></span>
                    </p>
                  </div>
                </div>
              </div>
              <div
                v-show="decompositionProductsss"
                style="
                  width: 100%;
                  height: 0.2rem;
                  display: inline-block;
                  text-align: center;
                  color: #aeaeb3;
                "
              >
                只可保留两位小数
              </div>
              <div class="productComparison">
                <ul class="description">
                  <li>
                    <p>标准及规程</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['标准及规程']"
                        :style='{"color":colors["标准及规程"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                  <li>
                    <p>取样人</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['取样人']"
                        :style='{"color":colors["取样人"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                  <li>
                    <p>试验仪器</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['试验仪器']"
                        :style='{"color":colors["试验仪器"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                  <li>
                    <p>分析人</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['分析人']"
                        :style='{"color":colors["分析人"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                  <li>
                    <p>结论</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['结论']"
                        :style='{"color":colors["结论"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                  <li
                    v-show="jieLun"
                    style="
                      width: 100%;
                      height: 0.2rem;
                      display: inline-block;
                      text-align: center;
                      color: #aeaeb3;
                    "
                  >
                    选填正常或着合格
                  </li>
                  <li>
                    <p>试验性质</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['试验性质']"
                        :style='{"color":colors["试验性质"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                  <li>
                    <p>审核</p>
                    <span
                      ><input
                        id="test"
                        v-model="signRule['审核']"
                        :style='{"color":colors["审核"]}'
                        style="border-style: none; width: 100%"
                        readonly="readonly"
                        value="123"
                    /></span>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- 底部 -->
      <div class="foot" v-show="display">
        <button
          id="openFile"
          class="mui-btn mui-btn-primary tag-read"
          @click="toWrite"
          type="button"
        >
          编辑文本
        </button>
        <button
          id="openFile"
          class="mui-btn mui-btn-primary"
          @click="mailbox"
          type="button"
        >
          发送邮箱
        </button>
      </div>
      <div class="foot" v-show="displays">
        <button
          id="openFile"
          class="mui-btn mui-btn-primary tag-read"
          @click="Sure(signRule)"
          type="button"
        >
          确定
        </button>
        <button
          id="openFile"
          class="mui-btn mui-btn-primary"
          @click="Cancel"
          type="button"
        >
          取消
        </button>
      </div>
    </div>
    <script>
      new Vue({
        el: "#app",

        data() {
          return {
            clipboard: sessionStorage.getItem("clipboard"),
            display: "black",
            displays: "",
            signRule: {
              // H2_A:1234.56,
              // H2_B:1234.56,
              // H2_C:134.345,
              // CO2_A:1309.01,
            },
            fileName: localStorage.getItem("fileName"),
            tAttachmentId: sessionStorage.getItem("tAttachmentId"),
            // 电压
            dianya: "",
            // 结论
            jieLun: "",
            // 组成
            decompositionProducts: "",
            decompositionProductso: "",
            decompositionProductst: "",
            decompositionProductsth: "",
            decompositionProductsf: "",
            decompositionProductsfi: "",
            decompositionProductss: "",
            decompositionProductsss: "",
            decompositionProductsse: "",
            aH2A: "",
            aH2B: "",
            aH2C: "",
            aH2O: "",
            aO2A: "",
            aO2B: "",
            aO2C: "",
            aO2O: "",
            aCH4A: "",
            aCH4B: "",
            aCH4C: "",
            aCH4O: "",
            aC2H6A: "",
            aC2H6B: "",
            aC2H6C: "",
            aC2H6O: "",
            aC2H4A: "",
            aC2H4B: "",
            aC2H4C: "",
            aC2H4O: "",
            aC2H2A: "",
            aC2H2B: "",
            aC2H2C: "",
            aC2H2O: "",
            aCOA: "",
            aCOB: "",
            aCOC: "",
            aCOO: "",
            aCO2A: "",
            aCO2B: "",
            aCO2C: "",
            aCO2O: "",
            aZQA: "",
            aZQB: "",
            aZQC: "",
            aZQO: "",
            // 弹出框
            addData: {},
            colors: {},
            // 颜色
            colorConfirm: "",
          };
        },
        created() {
          this.compatibleInput();
        },
        methods: {
          compatibleInput() {
            // this.signRule = JSON.parse(localStorage.getItem("clipboard"));
            var signRule = JSON.parse(localStorage.getItem("clipboard"));
            (signRule["timestamp"] = new Date().getTime() + ""),
              (this.signRule = signRule);
            this.colors = JSON.parse(localStorage.getItem("color"));
            this.signRule.H2_A = this.signRule.H2_A = '' ? '/' : this.signRule.H2_A
            this.signRule.H2_B = this.signRule.H2_B = '' ? '/' : this.signRule.H2_B
            this.signRule.H2_C = this.signRule.H2_C = '' ? '/' : this.signRule.H2_C
            this.signRule.H2_O = this.signRule.H2_O = '' ? '/' : this.signRule.H2_O
            this.signRule.O2_A = this.signRule.O2_A = '' ? '/' : this.signRule.O2_A
            this.signRule.O2_B = this.signRule.O2_B = '' ? '/' : this.signRule.O2_B
            this.signRule.O2_C = this.signRule.O2_C = '' ? '/' : this.signRule.O2_C
            this.signRule.O2_O = this.signRule.O2_O = '' ? '/' : this.signRule.O2_O
            this.signRule.CH4_A = this.signRule.CH4_A = '' ? '/' : this.signRule.CH4_A
            this.signRule.CH4_B = this.signRule.CH4_B = '' ? '/' : this.signRule.CH4_B
            this.signRule.CH4_C = this.signRule.CH4_C = '' ? '/' : this.signRule.CH4_C
            this.signRule.CH4_O = this.signRule.CH4_O = '' ? '/' : this.signRule.CH4_O
            this.signRule.C2H6_A = this.signRule.C2H6_A = '' ? '/' : this.signRule.C2H6_A
            this.signRule.C2H6_B = this.signRule.C2H6_B = '' ? '/' : this.signRule.C2H6_B
            this.signRule.C2H6_C = this.signRule.C2H6_C = '' ? '/' : this.signRule.C2H6_C
            this.signRule.C2H6_O = this.signRule.C2H6_O = '' ? '/' : this.signRule.C2H6_O
            this.signRule.C2H4_A = this.signRule.C2H4_A = '' ? '/' : this.signRule.C2H4_A
            this.signRule.C2H4_B = this.signRule.C2H4_B = '' ? '/' : this.signRule.C2H4_B
            this.signRule.C2H4_C = this.signRule.C2H4_C = '' ? '/' : this.signRule.C2H4_C
            this.signRule.C2H4_O = this.signRule.C2H4_O = '' ? '/' : this.signRule.C2H4_O
            this.signRule.C2H2_A = this.signRule.C2H2_A = '' ? '/' : this.signRule.C2H2_A
            this.signRule.C2H2_B = this.signRule.C2H2_B = '' ? '/' : this.signRule.C2H2_B
            this.signRule.C2H2_C = this.signRule.C2H2_C = '' ? '/' : this.signRule.C2H2_C
            this.signRule.C2H2_O = this.signRule.C2H2_O = '' ? '/' : this.signRule.C2H2_O
            this.signRule.CO_A = this.signRule.CO_A = '' ? '/' : this.signRule.CO_A
            this.signRule.CO_B = this.signRule.CO_B = '' ? '/' : this.signRule.CO_B
            this.signRule.CO_C = this.signRule.CO_C = '' ? '/' : this.signRule.CO_C
            this.signRule.CO_O = this.signRule.CO_O = '' ? '/' : this.signRule.CO_O
            this.signRule.CO2_A = this.signRule.CO2_A = '' ? '/' : this.signRule.CO2_A
            this.signRule.CO2_B = this.signRule.CO2_B = '' ? '/' : this.signRule.CO2_B
            this.signRule.CO2_C = this.signRule.CO2_C = '' ? '/' : this.signRule.CO2_C
            this.signRule.CO2_O = this.signRule.CO2_O = '' ? '/' : this.signRule.CO2_O
            this.signRule['总径值_A'] = this.signRule['总径值_A'] = '' ? '/' : this.signRule['总径值_A']
            this.signRule['总径值_B'] = this.signRule['总径值_B'] = '' ? '/' : this.signRule['总径值_B']
            this.signRule['总径值_C'] = this.signRule['总径值_C'] = '' ? '/' : this.signRule['总径值_C']
            this.signRule['总径值_O'] = this.signRule['总径值_O'] = '' ? '/' : this.signRule['总径值_O']
            var url = location.search;
            console.log(url, 2067);
            if (url.split("=")[1] == "flag") {
              var btnArray = ["取消", "确定"];
              mui.confirm(
                "此数据为上次未保存数据，是否继续使用？",
                "消息提醒",
                btnArray,
                (e) => {
                  if (e.index == 0) {
                    localStorage.clear();
                    $(location).attr("href", "WorkTicket.html");
                  }
                }
              );
            }
          },
          mailbox() {
            let dateFormTime =
              /((\d{3}[1-9]|\d{2}[1-9]\d|\d[1-9]\d{2}|[1-9]\d{3})(((0[13578]|1[02])(0[1-9]|[12]\d|3[01]))|((0[469]|11)(0[1-9]|[12]\d|30))|(02(0[1-9]|[1]\d|2[0-8]))))|(((\d{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))0229)/;
            let times =
              /^(\d{4})[- /.]([1-9]|0[1-9]|1[012])[- /.]([1-9]|0[1-9]|[12][0-9]|3[01])$/;
            if (this.signRule["取样日期"] || this.signRule["分析日期"]) {
              if (
                times.test(this.signRule["取样日期"]) &&
                !dateFormTime.test(this.signRule["取样日期"])
              ) {
                if (
                  times.test(this.signRule["分析日期"]) &&
                  !dateFormTime.test(this.signRule["分析日期"])
                ) {
                  this.boxReturn();
                } else if (
                  !times.test(this.signRule["分析日期"]) &&
                  dateFormTime.test(this.signRule["分析日期"])
                ) {
                  this.boxReturn();
                } else {
                  mui.toast("分析日期格式有误");
                }
              } else if (
                !times.test(this.signRule["取样日期"]) &&
                dateFormTime.test(this.signRule["取样日期"])
              ) {
                if (
                  times.test(this.signRule["分析日期"]) &&
                  !dateFormTime.test(this.signRule["分析日期"])
                ) {
                  this.boxReturn();
                } else if (
                  !times.test(this.signRule["分析日期"]) &&
                  dateFormTime.test(this.signRule["分析日期"])
                ) {
                  this.boxReturn();
                } else {
                  mui.toast("分析日期格式有误");
                }
              } else {
                mui.toast("取样日期格式有误");
              }
            } else {
              this.boxReturn();
            }
          },
          //发送邮箱
          boxReturn() {
            let userId = sessionStorage.getItem("userId");
            let orgId = sessionStorage.getItem("unitId");
            // return;
            $(".loader").css("display", "block");
            $(".curtain").css("display", "block");
            let data = {
              messageTitle: "试验报告", //场景名称(身份证识别、增值税识别、火车票识别、手写文字识别、打印文字识别、pdf转word）
              sceneNo: "81",
              fileName: this.fileName, //文本名称
              tAttachmentId: this.tAttachmentId,
              fileExt: "jpg", //文本后缀名称
              message: this.signRule, //识别后内容
              orgId: "1", //单位id
              userId: userId, //用户id
              userName: userName, //用户名称
              toMail: toMail, //发送给谁 453707600@qq.com  15146764979@163.com
              timestamp: new Date().getTime() + "",
              temp: this.signRule,
              reportCode: "002",
            };

            let mailboxReturn = mailbox(
              data.messageTitle,
              data.sceneNo,
              data.fileName,
              data.fileExt,
              data.message,
              data.orgId,
              data.userId,
              data.userName,
              data.toMail,
              data.timestamp,
              data.temp,
              data.reportCode
            );
            $(".loader").css("display", "none");
            $(".curtain").css("display", "none");
            if (mailboxReturn == 200) {
              addOperator(2, 10, "发送邮箱", 1, 1, "发送邮箱成功");
              // 清空local storage
              localStorage.clear();
              $(location).attr("href", "Home.html");
            } else {
              addOperator(2, 10, "发送邮箱", 1, 0, "发送邮箱失败");
            }
          },
          // 编写
          toWrite() {
            this.display = "";
            this.displays = "block";
            var txtN = document.getElementsByTagName("input");
            for (i = 0; i < txtN.length; i++) {
              if ((txtN[i].type = "text")) {
                txtN[i].readOnly = false;
              }
            }
            // 为了取消按钮
            localStorage.setItem("obj", JSON.stringify(this.signRule));
          },
          // 确定
          Sure(signRule) {
            // this.display = "block";
            // this.displays = "";
            var txtN = document.getElementsByTagName("input");
            // 控制电压
            const f = this.signRule["电压等级"].replace(/[^0-9]/gi, "");
            if (
              f == 6 ||
              f == 10 ||
              f == 35 ||
              f == 110 ||
              f == 220 ||
              f == 330
            ) {
              for (i = 0; i < txtN.length; i++) {
                if ((txtN[i].type = "text")) {
                  txtN[i].readOnly = true;
                }
              }
              this.display = "block";
              this.displays = "";
              this.dianya = "";
              // 控制结论
              if (
                this.signRule["结论"] == "合格" ||
                this.signRule["结论"] == "正常"
              ) {
                for (i = 0; i < txtN.length; i++) {
                  if ((txtN[i].type = "text")) {
                    txtN[i].readOnly = true;
                  }
                }
                this.display = "block";
                this.displays = "";
                this.jieLun = "";
                // 组成
                // 氢
                if (
                  this.signRule.H2_A != "/" &&
                  this.signRule.H2_A.split(".").length - 1 == "1"
                ) {
                  let H2A = this.signRule.H2_A.toString().split(".");
                  this.aH2A = H2A[1].length;
                } else if (
                  this.signRule.H2_A == "/" ||
                  this.signRule.H2_A == ""
                ) {
                  this.aH2A = 2;
                } else {
                  this.aH2A = 3;
                }
                if (
                  this.signRule.H2_B != "/" &&
                  this.signRule.H2_B.split(".").length - 1 == "1"
                ) {
                  let H2B = this.signRule.H2_B.toString().split(".");
                  this.aH2B = H2B[1].length;
                } else if (
                  this.signRule.H2_B == "/" ||
                  this.signRule.H2_B == ""
                ) {
                  this.aH2B = 2;
                } else {
                  this.aH2B = 3;
                }
                if (
                  this.signRule.H2_C != "/" &&
                  this.signRule.H2_C.split(".").length - 1 == "1"
                ) {
                  let H2C = this.signRule.H2_C.toString().split(".");
                  this.aH2C = H2A[1].length;
                } else if (
                  this.signRule.H2_C == "/" ||
                  this.signRule.H2_C == ""
                ) {
                  this.aH2C = 2;
                } else {
                  this.aH2C = 3;
                }
                if (
                  this.signRule.H2_C != "/" &&
                  this.signRule.H2_C.split(".").length - 1 == "1"
                ) {
                  let H2O = this.signRule.H2_O.toString().split(".");
                  this.aH2O = H2O[1].length;
                } else if (
                  this.signRule.H2_O == "/" ||
                  this.signRule.H2_O == ""
                ) {
                  this.aH2O = 2;
                } else {
                  this.aH2O = 3;
                }
                if (
                  this.aH2A == 2 &&
                  this.aH2B == 2 &&
                  this.aH2C == 2 &&
                  this.aH2O == 2
                ) {
                  for (i = 0; i < txtN.length; i++) {
                    if ((txtN[i].type = "text")) {
                      txtN[i].readOnly = true;
                    }
                  }
                  this.display = "block";
                  this.displays = "";
                  this.decompositionProducts = "";
                  // 氧
                  if (
                    this.signRule.O2_A != "/" &&
                    this.signRule.O2_A.split(".").length - 1 == "1"
                  ) {
                    let O2A = this.signRule.O2_A.toString().split(".");
                    this.aO2A = O2A[1].length;
                  } else if (
                    this.signRule.O2_A == "/" ||
                    this.signRule.O2_A == ""
                  ) {
                    this.aO2A = 2;
                  } else {
                    this.aO2A = 3;
                  }
                  if (
                    this.signRule.O2_B != "/" &&
                    this.signRule.O2_B.split(".").length - 1 == "1"
                  ) {
                    let O2B = this.signRule.O2_B.toString().split(".");
                    this.aO2B = O2B[1].length;
                  } else if (
                    this.signRule.O2_B == "/" ||
                    this.signRule.O2_B == ""
                  ) {
                    this.aO2B = 2;
                  } else {
                    this.aO2B = 3;
                  }
                  if (
                    this.signRule.O2_C != "/" &&
                    this.signRule.O2_C.split(".").length - 1 == "1"
                  ) {
                    let O2C = this.signRule.O2_C.toString().split(".");
                    this.aO2C = O2C[1].length;
                  } else if (
                    this.signRule.O2_C == "/" ||
                    this.signRule.O2_C == ""
                  ) {
                    this.aO2C = 2;
                  } else {
                    this.aO2C = 3;
                  }
                  if (
                    this.signRule.O2_O != "/" &&
                    this.signRule.O2_O.split(".").length - 1 == "1"
                  ) {
                    let O2O = this.signRule.O2_O.toString().split(".");
                    this.aO2O = O2O[1].length;
                  } else if (
                    this.signRule.O2_O == "/" ||
                    this.signRule.O2_O == ""
                  ) {
                    this.aO2O = 2;
                  } else {
                    this.aO2O = 3;
                  }
                  if (
                    this.aO2A == 2 &&
                    this.aO2B == 2 &&
                    this.aO2C == 2 &&
                    this.aO2O == 2
                  ) {
                    for (i = 0; i < txtN.length; i++) {
                      if ((txtN[i].type = "text")) {
                        txtN[i].readOnly = true;
                      }
                    }
                    this.display = "block";
                    this.displays = "";
                    this.decompositionProductso = "";
                    // 甲烷 CH4_C
                    if (
                      this.signRule.CH4_A != "/" &&
                      this.signRule.CH4_A.split(".").length - 1 == "1"
                    ) {
                      let CH4A = this.signRule.CH4_A.toString().split(".");
                      this.aCH4A = CH4A[1].length;
                    } else if (
                      this.signRule.CH4_A == "/" ||
                      this.signRule.CH4_A == ""
                    ) {
                      this.aCH4A = 2;
                    } else {
                      this.aCH4A = 3;
                    }
                    if (
                      this.signRule.CH4_B != "/" &&
                      this.signRule.CH4_B.split(".").length - 1 == "1"
                    ) {
                      let CH4B = this.signRule.CH4_B.toString().split(".");
                      this.aCH4B = CH4B[1].length;
                    } else if (
                      this.signRule.CH4_B == "/" ||
                      this.signRule.CH4_B == ""
                    ) {
                      this.aCH4B = 2;
                    } else {
                      this.aCH4B = 3;
                    }
                    if (
                      this.signRule.CH4_C != "/" &&
                      this.signRule.CH4_C.split(".").length - 1 == "1"
                    ) {
                      let CH4C = this.signRule.CH4_C.toString().split(".");
                      this.aCH4C = CH4C[1].length;
                    } else if (
                      this.signRule.CH4_C == "/" ||
                      this.signRule.CH4_C == ""
                    ) {
                      this.aCH4C = 2;
                    } else {
                      this.aCH4C = 3;
                    }
                    if (
                      this.signRule.CH4_D != "/" &&
                      this.signRule.CH4_D.split(".").length - 1 == "1"
                    ) {
                      let CH4O = this.signRule.CH4_D.toString().split(".");
                      this.aCH4O = CH4O[1].length;
                    } else if (
                      this.signRule.CH4_D == "/" ||
                      this.signRule.CH4_D == " "
                    ) {
                      this.aCH4O = 2;
                    } else {
                      this.aCH4O = 3;
                    }
                    if (
                      this.aCH4A == 2 &&
                      this.aCH4B == 2 &&
                      this.aCH4C == 2 &&
                      this.aCH4O == 2
                    ) {
                      for (i = 0; i < txtN.length; i++) {
                        if ((txtN[i].type = "text")) {
                          txtN[i].readOnly = true;
                        }
                      }
                      this.display = "block";
                      this.displays = "";
                      this.decompositionProductst = "";
                      // 乙烷
                      if (
                        this.signRule.C2H6_A != "/" &&
                        this.signRule.C2H6_A.split(".").length - 1 == "1"
                      ) {
                        let C2H6A = this.signRule.C2H6_A.toString().split(".");
                        this.aC2H6A = C2H6A[1].length;
                      } else if (
                        this.signRule.C2H6_A == "/" ||
                        this.signRule.C2H6_A == ""
                      ) {
                        this.aC2H6A = 2;
                      } else {
                        this.aC2H6A = 3;
                      }
                      if (
                        this.signRule.C2H6_B != "/" &&
                        this.signRule.C2H6_B.split(".").length - 1 == "1"
                      ) {
                        let C2H6B = this.signRule.C2H6_B.toString().split(".");
                        this.aC2H6B = C2H6B[1].length;
                      } else if (
                        this.signRule.C2H6_B == "/" ||
                        this.signRule.C2H6_B == ""
                      ) {
                        this.aC2H6B = 2;
                      } else {
                        this.aC2H6B = 3;
                      }
                      if (
                        this.signRule.C2H6_C != "/" &&
                        this.signRule.C2H6_C.split(".").length - 1 == "1"
                      ) {
                        let C2H6C = this.signRule.C2H6_C.toString().split(".");
                        this.aC2H6C = C2H6C[1].length;
                      } else if (
                        this.signRule.C2H6_C == "/" ||
                        this.signRule.C2H6_C == ""
                      ) {
                        this.aC2H6C = 2;
                      } else {
                        this.aC2H6C = 3;
                      }
                      if (
                        this.signRule.C2H6_O != "/" &&
                        this.signRule.C2H6_O.split(".").length - 1 == "1"
                      ) {
                        let C2H6O = this.signRule.C2H6_O.toString().split(".");
                        this.aC2H6O = C2H6O[1].length;
                      } else if (
                        this.signRule.C2H6_O == "/" ||
                        this.signRule.C2H6_O == ""
                      ) {
                        this.aC2H6O = 2;
                      } else {
                        this.aC2H6O = 3;
                      }
                      if (
                        this.aC2H6A == 2 &&
                        this.aC2H6B == 2 &&
                        this.aC2H6C == 2 &&
                        this.aC2H6O == 2
                      ) {
                        for (i = 0; i < txtN.length; i++) {
                          if ((txtN[i].type = "text")) {
                            txtN[i].readOnly = true;
                          }
                        }
                        this.display = "block";
                        this.displays = "";
                        this.decompositionProductsth = "";
                        // 乙烯 C2H4
                        if (
                          this.signRule.C2H4_A != "/" &&
                          this.signRule.C2H4_A.split(".").length - 1 == "1"
                        ) {
                          let C2H4A =
                            this.signRule.C2H4_A.toString().split(".");
                          this.aC2H4A = C2H4A[1].length;
                        } else if (
                          this.signRule.C2H4_A == "/" ||
                          this.signRule.C2H4_A == ""
                        ) {
                          this.aC2H4A = 2;
                        } else {
                          this.aC2H4A = 3;
                        }
                        if (
                          this.signRule.C2H4_B != "/" &&
                          this.signRule.C2H4_B.split(".").length - 1 == "1"
                        ) {
                          let C2H4B =
                            this.signRule.C2H4_B.toString().split(".");
                          this.aC2H4B = C2H4B[1].length;
                        } else if (
                          this.signRule.C2H4_B == "/" ||
                          this.signRule.C2H4_B == ""
                        ) {
                          this.aC2H4B = 2;
                        } else {
                          this.aC2H4B = 3;
                        }
                        if (
                          this.signRule.C2H4_C != "/" &&
                          this.signRule.C2H4_C.split(".").length - 1 == "1"
                        ) {
                          let C2H4C =
                            this.signRule.C2H4_C.toString().split(".");
                          this.aC2H4C = C2H4C[1].length;
                        } else if (
                          this.signRule.C2H4_C == "/" ||
                          this.signRule.C2H4_C == ""
                        ) {
                          this.aC2H4C = 2;
                        } else {
                          this.aC2H4C = 3;
                        }
                        if (
                          this.signRule.C2H4_O != "/" &&
                          this.signRule.C2H4_O.split(".").length - 1 == "1"
                        ) {
                          let C2H4O =
                            this.signRule.C2H4_O.toString().split(".");
                          this.aC2H4O = C2H4O[1].length;
                        } else if (
                          this.signRule.C2H4_O == "/" ||
                          this.signRule.C2H4_O == ""
                        ) {
                          this.aC2H4O = 2;
                        } else {
                          this.aC2H4O = 3;
                        }
                        if (
                          this.aC2H4A == 2 &&
                          this.aC2H4B == 2 &&
                          this.aC2H4C == 2 &&
                          this.aC2H4O == 2
                        ) {
                          for (i = 0; i < txtN.length; i++) {
                            if ((txtN[i].type = "text")) {
                              txtN[i].readOnly = true;
                            }
                          }
                          this.display = "block";
                          this.displays = "";
                          this.decompositionProductsf = "";
                          // 乙炔
                          if (
                            this.signRule.C2H2_A != "/" &&
                            this.signRule.C2H2_A.split(".").length - 1 == "1"
                          ) {
                            let C2H2A =
                              this.signRule.C2H2_A.toString().split(".");
                            this.aC2H2A = C2H2A[1].length;
                          } else if (
                            this.signRule.C2H2_A == "/" ||
                            this.signRule.C2H2_A == ""
                          ) {
                            this.aC2H2A = 2;
                          } else {
                            this.aC2H2A = 3;
                          }
                          if (
                            this.signRule.C2H2_B != "/" &&
                            this.signRule.C2H2_B.split(".").length - 1 == "1"
                          ) {
                            let C2H2B =
                              this.signRule.C2H2_B.toString().split(".");
                            this.aC2H2B = C2H2B[1].length;
                          } else if (
                            this.signRule.C2H2_B == "/" ||
                            this.signRule.C2H2_B == ""
                          ) {
                            this.aC2H2B = 2;
                          } else {
                            this.aC2H2B = 3;
                          }
                          if (
                            this.signRule.C2H2_C != "/" &&
                            this.signRule.C2H2_C.split(".").length - 1 == "1"
                          ) {
                            let C2H2C =
                              this.signRule.C2H2_C.toString().split(".");
                            this.aC2H2C = C2H2C[1].length;
                          } else if (
                            this.signRule.C2H2_C == "/" ||
                            this.signRule.C2H2_C == ""
                          ) {
                            this.aC2H2C = 2;
                          } else {
                            this.aC2H2C = 3;
                          }
                          if (
                            this.signRule.C2H2_O != "/" &&
                            this.signRule.C2H2_O.split(".").length - 1 == "1"
                          ) {
                            let C2H2O =
                              this.signRule.C2H2_O.toString().split(".");
                            this.aC2H2O = C2H2O[1].length;
                          } else if (
                            this.signRule.C2H2_O == "/" ||
                            this.signRule.C2H2_O == ""
                          ) {
                            this.aC2H2O = 2;
                          } else {
                            this.aC2H2O = 3;
                          }
                          if (
                            this.aC2H2A == 2 &&
                            this.aC2H2B == 2 &&
                            this.aC2H2C == 2 &&
                            this.aC2H2O == 2
                          ) {
                            for (i = 0; i < txtN.length; i++) {
                              if ((txtN[i].type = "text")) {
                                txtN[i].readOnly = true;
                              }
                            }
                            this.display = "block";
                            this.displays = "";
                            this.decompositionProductsfi = "";
                            // 一氧化碳
                            if (
                              this.signRule.CO_A != "/" &&
                              this.signRule.CO_A.split(".").length - 1 == "1"
                            ) {
                              let COA =
                                this.signRule.CO_A.toString().split(".");
                              this.aCOA = COA[1].length;
                            } else if (
                              this.signRule.CO_A == "/" ||
                              this.signRule.CO_A == ""
                            ) {
                              this.aCOA = 2;
                            } else {
                              this.aCOA = 3;
                            }
                            if (
                              this.signRule.CO_B != "/" &&
                              this.signRule.CO_B.split(".").length - 1 == "1"
                            ) {
                              let COB =
                                this.signRule.CO_B.toString().split(".");
                              this.aCOB = COB[1].length;
                            } else if (
                              this.signRule.CO_B == "/" ||
                              this.signRule.CO_B == ""
                            ) {
                              this.aCOB = 2;
                            } else {
                              this.aCOB = 3;
                            }
                            if (
                              this.signRule.CO_C != "/" &&
                              this.signRule.CO_C.split(".").length - 1 == "1"
                            ) {
                              let COC =
                                this.signRule.CO_C.toString().split(".");
                              this.aCOC = COC[1].length;
                            } else if (
                              this.signRule.CO_C == "/" ||
                              this.signRule.CO_C == ""
                            ) {
                              this.aCOC = 2;
                            } else {
                              this.aCOC = 3;
                            }
                            if (
                              this.signRule.CO_O != "/" &&
                              this.signRule.CO_O.split(".").length - 1 == "1"
                            ) {
                              let COO =
                                this.signRule.CO_O.toString().split(".");
                              this.aCOO = COO[1].length;
                            } else if (
                              this.signRule.CO_O == "/" ||
                              this.signRule.CO_O == ""
                            ) {
                              this.aCOO = 2;
                            } else {
                              this.aCOO = 3;
                            }
                            if (
                              this.aCOA == 2 &&
                              this.aCOB == 2 &&
                              this.aCOC == 2 &&
                              this.aCOO == 2
                            ) {
                              for (i = 0; i < txtN.length; i++) {
                                if ((txtN[i].type = "text")) {
                                  txtN[i].readOnly = true;
                                }
                              }
                              this.display = "block";
                              this.displays = "";
                              this.decompositionProductss = "";
                              // 二氧化碳
                              if (
                                this.signRule.CO2_A != "/" &&
                                this.signRule.CO2_A.split(".").length - 1 == "1"
                              ) {
                                let CO2A =
                                  this.signRule.CO2_A.toString().split(".");
                                this.aCO2A = CO2A[1].length;
                              } else if (
                                this.signRule.CO2_A == "/" ||
                                this.signRule.CO2_A == ""
                              ) {
                                this.aCO2A = 2;
                              } else {
                                this.aCO2A = 3;
                              }
                              if (
                                this.signRule.CO2_B != "/" &&
                                this.signRule.CO2_B.split(".").length - 1 == "1"
                              ) {
                                let CO2B =
                                  this.signRule.CO2_B.toString().split(".");
                                this.aCO2B = CO2B[1].length;
                              } else if (
                                this.signRule.CO2_B == "/" ||
                                this.signRule.CO2_B == ""
                              ) {
                                this.aCO2B = 2;
                              } else {
                                this.aCO2B = 3;
                              }
                              if (
                                this.signRule.CO2_C != "/" &&
                                this.signRule.CO2_C.split(".").length - 1 == "1"
                              ) {
                                let CO2C =
                                  this.signRule.CO2_C.toString().split(".");
                                this.aCO2C = CO2C[1].length;
                              } else if (
                                this.signRule.CO2_C == "/" ||
                                this.signRule.CO2_C == ""
                              ) {
                                this.aCO2C = 2;
                              } else {
                                this.aCO2C = 3;
                              }
                              if (
                                this.signRule.CO2_O != "/" &&
                                this.signRule.CO2_O.split(".").length - 1 == "1"
                              ) {
                                let CO2O =
                                  this.signRule.CO2_O.toString().split(".");
                                this.aCO2O = CO2O[1].length;
                              } else if (
                                this.signRule.CO2_O == "/" ||
                                this.signRule.CO2_O == ""
                              ) {
                                this.aCO2O = 2;
                              } else {
                                this.aCO2O = 3;
                              }
                              if (
                                this.aCO2A == 2 &&
                                this.aCO2B == 2 &&
                                this.aCO2C == 2 &&
                                this.aCO2O == 2
                              ) {
                                for (i = 0; i < txtN.length; i++) {
                                  if ((txtN[i].type = "text")) {
                                    txtN[i].readOnly = true;
                                  }
                                }
                                this.display = "block";
                                this.displays = "";
                                this.decompositionProductsse = "";
                                // 总烃
                                if (this.signRule["总径值_A"]) {
                                  let ZQA = this.signRule["总径值_A"]
                                    .toString()
                                    .split(".");
                                  this.aZQA = ZQA[1].length;
                                } else {
                                  this.aZQA = 2;
                                }
                                if (this.signRule["总径值_B"]) {
                                  let ZQB = this.signRule["总径值_B"]
                                    .toString()
                                    .split(".");
                                  this.aZQB = ZQB[1].length;
                                } else {
                                  this.aZQB = 2;
                                }
                                if (this.signRule["总径值_C"]) {
                                  let ZQC = this.signRule["总径值_C"]
                                    .toString()
                                    .split(".");
                                  this.aZQC = ZQC[1].length;
                                } else {
                                  this.aZQC = 2;
                                }
                                if (this.signRule["总径值_O"]) {
                                  let ZQO = this.signRule["总径值_O"]
                                    .toString()
                                    .split(".");
                                  this.aZQO = ZQO[1].length;
                                } else {
                                  this.aZQO = 2;
                                }
                                if (
                                  this.aZQA == 2 &&
                                  this.aZQB == 2 &&
                                  this.aZQC == 2 &&
                                  this.aZQO == 2
                                ) {
                                  for (i = 0; i < txtN.length; i++) {
                                    if ((txtN[i].type = "text")) {
                                      txtN[i].readOnly = true;
                                    }
                                  }
                                  this.display = "block";
                                  this.displays = "";
                                  this.decompositionProductsss = "";
                                } else {
                                  mui.toast("总径值输入有误");
                                  this.displays = "block";
                                  this.display = "";
                                  this.decompositionProductsss = "black";
                                  for (i = 0; i < txtN.length; i++) {
                                    if ((txtN[i].type = "text")) {
                                      txtN[i].readOnly = false;
                                    }
                                  }
                                }
                              } else {
                                mui.toast("二氧化碳值输入有误");
                                this.displays = "block";
                                this.display = "";
                                this.decompositionProductsse = "black";
                                for (i = 0; i < txtN.length; i++) {
                                  if ((txtN[i].type = "text")) {
                                    txtN[i].readOnly = false;
                                  }
                                }
                              }
                            } else {
                              mui.toast("一氧化碳值输入有误");
                              this.displays = "block";
                              this.display = "";
                              this.decompositionProductss = "black";
                              for (i = 0; i < txtN.length; i++) {
                                if ((txtN[i].type = "text")) {
                                  txtN[i].readOnly = false;
                                }
                              }
                            }
                          } else {
                            mui.toast("乙炔值输入有误");
                            this.displays = "block";
                            this.display = "";
                            this.decompositionProductsfi = "black";
                            for (i = 0; i < txtN.length; i++) {
                              if ((txtN[i].type = "text")) {
                                txtN[i].readOnly = false;
                              }
                            }
                          }
                        } else {
                          mui.toast("乙烯值输入有误");
                          this.displays = "block";
                          this.display = "";
                          this.decompositionProductsf = "black";
                          for (i = 0; i < txtN.length; i++) {
                            if ((txtN[i].type = "text")) {
                              txtN[i].readOnly = false;
                            }
                          }
                        }
                      } else {
                        mui.toast("乙烷值输入有误");
                        this.displays = "block";
                        this.display = "";
                        this.decompositionProductsth = "black";
                        for (i = 0; i < txtN.length; i++) {
                          if ((txtN[i].type = "text")) {
                            txtN[i].readOnly = false;
                          }
                        }
                      }
                    } else {
                      mui.toast("甲烷值输入有误");
                      this.displays = "block";
                      this.display = "";
                      this.decompositionProductst = "black";
                      for (i = 0; i < txtN.length; i++) {
                        if ((txtN[i].type = "text")) {
                          txtN[i].readOnly = false;
                        }
                      }
                    }
                  } else {
                    mui.toast("氧气值输入有误");
                    this.displays = "block";
                    this.display = "";
                    this.decompositionProductso = "black";
                    for (i = 0; i < txtN.length; i++) {
                      if ((txtN[i].type = "text")) {
                        txtN[i].readOnly = false;
                      }
                    }
                  }
                } else {
                  mui.toast("氢气值输入有误");
                  this.displays = "block";
                  this.display = "";
                  this.decompositionProducts = "black";
                  for (i = 0; i < txtN.length; i++) {
                    if ((txtN[i].type = "text")) {
                      txtN[i].readOnly = false;
                    }
                  }
                }
              } else {
                mui.toast("结论信息输入有误");
                this.displays = "block";
                this.display = "";
                this.jieLun = "black";
                for (i = 0; i < txtN.length; i++) {
                  if ((txtN[i].type = "text")) {
                    txtN[i].readOnly = false;
                  }
                }
              }
            } else {
              mui.toast("电压等级值输入有误");
              this.displays = "block";
              this.display = "";
              this.dianya = "block";
              for (i = 0; i < txtN.length; i++) {
                if ((txtN[i].type = "text")) {
                  txtN[i].readOnly = false;
                }
              }
            }
            let dateFormTime =
              /((\d{3}[1-9]|\d{2}[1-9]\d|\d[1-9]\d{2}|[1-9]\d{3})(((0[13578]|1[02])(0[1-9]|[12]\d|3[01]))|((0[469]|11)(0[1-9]|[12]\d|30))|(02(0[1-9]|[1]\d|2[0-8]))))|(((\d{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))0229)/;
            let times =
              /^(\d{4})[- /.]([1-9]|0[1-9]|1[012])[- /.]([1-9]|0[1-9]|[12][0-9]|3[01])$/;
            if (
              times.test(this.signRule["取样日期"]) &&
              !dateFormTime.test(this.signRule["取样日期"])
            ) {
            } else if (
              !times.test(this.signRule["取样日期"]) &&
              dateFormTime.test(this.signRule["取样日期"])
            ) {
            } else {
              mui.toast("取样日期格式有误");
              this.displays = "block";
              this.display = "";
              for (i = 0; i < txtN.length; i++) {
                if ((txtN[i].type = "text")) {
                  txtN[i].readOnly = false;
                }
              }
            }
            if (
              times.test(this.signRule["分析日期"]) &&
              !dateFormTime.test(this.signRule["分析日期"])
            ) {
            } else if (
              !times.test(this.signRule["分析日期"]) &&
              dateFormTime.test(this.signRule["分析日期"])
            ) {
            } else {
              mui.toast("分析日期格式有误");
              this.displays = "block";
              this.display = "";
              for (i = 0; i < txtN.length; i++) {
                if ((txtN[i].type = "text")) {
                  txtN[i].readOnly = false;
                }
              }
            }
            localStorage.setItem("clipboard", JSON.stringify(this.signRule));
          },
          // 取消
          Cancel() {
            // 取消后数据不变
            let Item = JSON.parse(localStorage.getItem("obj"));
            this.addData = Item;
            this.signRule = this.addData;
            this.display = "block";
            this.displays = "";
            this.dianya = "";
            this.jieLun = "";
            this.decompositionProducts = "";
            this.decompositionProductso = "";
            this.decompositionProductst = "";
            this.decompositionProductsth = "";
            this.decompositionProductsf = "";
            this.decompositionProductsfi = "";
            this.decompositionProductss = "";
            this.decompositionProductsse = "";
            this.decompositionProductsss = "";
            var txtN = document.getElementsByTagName("input");
            for (i = 0; i < txtN.length; i++) {
              if ((txtN[i].type = "text")) {
                txtN[i].readOnly = true;
              }
            }
            localStorage.setItem("clipboard", JSON.stringify(this.signRule));
          },
          // 返回
          zhuce() {
            // document.getElementById("confirmBtn").addEventListener('tap', function() {
            // if (this.getEmailID !== "null") {
            var btnArray = ["取消", "确定"];
            mui.confirm(
              "扫描信息尚未保存,确定返回上一步吗？",
              "消息提醒",
              btnArray,
              (e) => {
                if (e.index == 1) {
                  localStorage.clear();
                  $(location).attr("href", "Home.html");
                }
              }
            );
            // } else {
            //   $(location).attr("href", "zhu_ce.html");
            // }

            // });
            // $(location).attr("href", "zhu_ce.html");
          },
        },
      });
    </script>
  </body>
</html>

<body></body>
